package com.metaera.app.controller.presenter;

import com.metaera.app.controller.core.SimplePaginationPresenter;
import com.metaera.app.data.DataRepository;
import com.metaera.app.data.model.BasicListResponse;
import com.metaera.app.data.model.TodayEventResponse;
import com.metaera.app.data.network.ApiParam;

import io.reactivex.Observable;

public class TodayEventListPresenter extends SimplePaginationPresenter<TodayEventResponse> {

    @Override
    protected Observable<BasicListResponse<TodayEventResponse>> execute() {
        return DataRepository.getInstance().getEventDetails(mPage, ApiParam.PAGE_SIZE);
    }

}
